package com.dubbo.accessory.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.accessory.AccessorySellerService;
import com.dubbo.accessory.mapper.AccessoryProviderMapper;
import com.dubbo.common.dtos.AppHttpCodeEnum;
import com.dubbo.common.dtos.ResponseResult;
import com.dubbo.model.accessory.dtos.AccessorySellerDto;
import com.dubbo.model.accessory.pojos.AccessorySeller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
@Service(timeout = 6000000, retries = 0)
@Component
public class AccessorySellerServiceImpl implements AccessorySellerService {
    @Autowired
    private AccessoryProviderMapper accessoryProviderMapper;


    @Override
    public ResponseResult<List<AccessorySeller>> getAccessorySeller() {

        return new ResponseResult().ok(accessoryProviderMapper.getAccessorySeller());
    }
}
